package com.qf.pojo;

/**
 * 演示pojo实体类
/**
 * 演示pojo实体类
 * @author 千锋教育
 */

public class Goods {
    //id
    private Integer id;

    //名字
    private String name;

    //年龄
    private double price;

    //描述
    private String desc;

    //无参构造
    public Goods() {
    }

    /**
     * 有参构造
     */
    public Goods(Integer id, String name, double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }
    public Goods(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", desc='" + desc + '\'' +
                '}';
    }
}
